import Router from 'koa-router'
import { success } from '../common/ResResult'
import { ctgyDao } from '../modules/ctgy/dao/CtgyDao'

const router = new Router()
router.prefix('/ctgymodule')

router.get('/findSecThrdCtgys/:firstctgyId', async ctx => {
  const { firstctgyId } = ctx.params
  const r = await ctgyDao.findSecThrdCtgysByCon(firstctgyId)
  // const r = await ctgyDao.findSecThrdCtgysBySql(firstctgyId)
  console.log('aaaa', r)
  ctx.body = success(r)
})

module.exports = router
